package com.yxy.springcloud.framework.unionauth.model;


import lombok.Data;
import java.util.Date;
import java.math.BigDecimal;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Entity;
import javax.persistence.Column;


@Data
@Entity
@Table(name = "admin_user")
public class AdminUser {

  //主键
  @Id
  @Column(name = "id")
  private Long id;

  //姓名
  @Column(name = "name")
  private String name;

  //登录用户名
  @Column(name = "username")
  private String username;

  //密码
  @Column(name = "password")
  private String password;

  //描述
  @Column(name = "description")
  private String description;

  //0 有效  1 逻辑删除
  @Column(name = "status")
  private Long status;

  //描述(保留字段)
  @Column(name = "misc")
  private String misc;

  //创建者id
  @Column(name = "create_user_id")
  private Long createUserId;

  //创建人姓名
  @Column(name = "create_user_name")
  private String createUserName;

  //创建时间
  @Column(name = "create_date")
  private Date createDate;

  //修改人id
  @Column(name = "update_user_id")
  private Long updateUserId;

  //修改人姓名
  @Column(name = "update_user_name")
  private String updateUserName;

  //更新时间
  @Column(name = "update_date")
  private Date updateDate;


}
